def func(a, b, c):
    return a + b + c
# pos
func(1, 2, 3)

# key-val
func(b = 2, a = 1, c = 3)

# pos + key-val (位置参数必须放在最前面)
func(1, c = 3, b = 2)

# 缺省参数(默认参数只能写在最后)
def userInfo(name, age, gender="男"):
    print(name)
    print(age)
    print(gender)

# 可变参数
# 位置传递(默认为元组类型)
def user_info(*args):
    print(args)

# 关键字传递的不定长(默认为字典类型)
def user_info(**kwargs):
    print(kwargs["hello"])



